import service from '@/utils/request'

const RadarApi = {
  // ---------------跌倒报警器----------------
  addRadar: function (data) {
    return service.post('radar', data)
  },
  deleteRadar: function (data) {
    return service.put('radar/delete', data)
  },
  editRadar: function (data) {
    return service.put('radar', data)
  },
  listRadar: function (data) {
    return service.get('radar/page', {params: data })
  },
  getRadarInfo: function (data) {
    return service.get('radar', {params: data })
  },
}

export default RadarApi
